a11y: atk_component_get_position is deprecated
authorJonas Danielsson <jonas@threetimestwo.org>
Sat, 29 Mar 2014 20:48:43 +0000 (21:48 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 2 Apr 2014 01:40:23 +0000 (21:40 -0400)
Switch to using atk_component_get_extents instead.

https://bugzilla.gnome.org/show_bug.cgi?id=727313

gtk/a11y/gtkbuttonaccessible.c
gtk/a11y/gtkentryaccessible.c
gtk/a11y/gtkiconviewaccessible.c
gtk/a11y/gtkimageaccessible.c
gtk/a11y/gtkimagecellaccessible.c
gtk/a11y/gtknotebookpageaccessible.c

index 3ba94d30cf66e1e89dac0e984ad8001cdf888f61..57d4286710ba9d0f9d222dafe7c14f1bd5b0571e 100644 (file)
@@ -405,7 +405,8 @@ gtk_button_accessible_get_image_position (AtkImage     *image,
   if (button_image != NULL)
     {
       obj = gtk_widget_get_accessible (button_image);
-      atk_component_get_position (ATK_COMPONENT (obj), x, y, coord_type);
+      atk_component_get_extents (ATK_COMPONENT (obj), x, y, NULL, NULL,
+                                 coord_type);
     }
   else
     {
index 981bc800d957447eac929634ff3c02d3dcc2b236..c19be104baf39ed403bc4bede3290f7111a6e2fd 100644 (file)
@@ -327,7 +327,8 @@ gtk_entry_icon_accessible_get_position (AtkComponent   *component,
   GtkWidget *widget;
 
   *x = G_MININT;
-  atk_component_get_position (ATK_COMPONENT (icon->entry), x, y, coord_type);
+  atk_component_get_extents (ATK_COMPONENT (icon->entry), x, y, NULL, NULL,
+                             coord_type);
   if (*x == G_MININT)
     return;
 
index a6468705bf99d66cff93f5ded84312234bb9453d..eb85522d872805c63acc710d2e85ff5a72ebd4b2 100644 (file)
@@ -313,7 +313,8 @@ gtk_icon_view_item_accessible_get_image_position (AtkImage    *image,
   if (atk_state_set_contains_state (item->state_set, ATK_STATE_DEFUNCT))
     return;
 
-  atk_component_get_position (ATK_COMPONENT (image), x, y, coord_type);
+  atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL,
+                             coord_type);
 
   if (get_pixbuf_box (GTK_ICON_VIEW (item->widget), item->item, &box))
     {
@@ -597,7 +598,8 @@ gtk_icon_view_item_accessible_get_extents (AtkComponent *component,
   if (gtk_icon_view_item_accessible_is_showing (item))
     {
       parent_obj = gtk_widget_get_accessible (item->widget);
-      atk_component_get_position (ATK_COMPONENT (parent_obj), &l_x, &l_y, coord_type);
+      atk_component_get_extents (ATK_COMPONENT (parent_obj), &l_x, &l_y,
+                                 NULL, NULL, coord_type);
       *x = l_x + item->item->cell_area.x;
       *y = l_y + item->item->cell_area.y;
     }
index 3a17a7fcb43d525825aac6d0e4417555ea774553..08ab5189d3d5eaabd1beb31198057fbbdb640015 100644 (file)
@@ -260,7 +260,8 @@ gtk_image_accessible_get_image_position (AtkImage     *image,
                                          gint         *y,
                                          AtkCoordType  coord_type)
 {
-  atk_component_get_position (ATK_COMPONENT (image), x, y, coord_type);
+  atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL,
+                             coord_type);
 }
 
 static void
index 7851bb14550ca6465da68a88d2320e8ffc580f8d..152c456c2630b6bac456708705b3bacfc06fe0c5 100644 (file)
@@ -83,7 +83,8 @@ gtk_image_cell_accessible_get_image_position (AtkImage     *image,
                                               gint         *y,
                                               AtkCoordType  coord_type)
 {
-  atk_component_get_position (ATK_COMPONENT (image), x, y, coord_type);
+  atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL,
+                             coord_type);
 }
 
 static void
index 249d19cf497861e25f23a8e55f1d6c9474b93312..a5a2dad2858c27a7f87701644f57e86a65b94ecb 100644 (file)
@@ -316,7 +316,8 @@ gtk_notebook_page_accessible_get_extents (AtkComponent *component,
       if (!child)
         return;
 
-      atk_component_get_position (ATK_COMPONENT (child), x, y, coord_type);
+      atk_component_get_extents (ATK_COMPONENT (child), x, y, NULL, NULL,
+                                 coord_type);
       g_object_unref (child);
     }
   else